#include"head.h"

void test1()
{
	ListNode* plist = ListCreate();
	ListPushFront(plist, 0);
	ListPushFront(plist, 1);
	ListPushFront(plist, 2);
	ListPushFront(plist, 3);
	ListPushFront(plist, 4);
	ListPrint(plist); 
	ListPopFront(plist);
	ListPrint(plist);
	ListDestory(plist);
}

void test02()
{
	ListNode* plist = ListCreate();
	ListPushBack(plist, 1);
	ListPushBack(plist, 2);
	ListPushBack(plist, 3);
	ListPushBack(plist, 4);
	ListPushBack(plist, 5);
	ListPushBack(plist, 6);
	ListNode* p1=ListFind(plist,1);
	ListInsert(p1, 10086);
	ListErase(p1);
	ListPrint(plist);
}

int main()
{
	//test1();
	test02();
	return 0;
}